package com.xxh.dataaccess.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.Data;

/**
 * (Tag)表实体类
 *
 * @author makejava
 * @since 2021-03-13 16:21:59
 */
@SuppressWarnings("serial")
@Data
public class Tag extends Model<Tag> {
    //标签ID
    @TableId(type= IdType.AUTO)
    private Integer tid;
    //标签名称
    private String tname;


    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.tid;
    }
}
